package com.wyclabs.commons.entity;

import com.wyclabs.commons.constants.ErrorCodes;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author rs
 * response基类
 */
@Data
public class BaseResult {
    @ApiModelProperty("状态码")
    private String code;
    @ApiModelProperty("信息")
    private String msg = "";

    boolean checkSuccess() {
        return code.equals(ErrorCodes.OK.getCode());
    }
}
